<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>删除节点</title>
		<style>
			.alert {
				padding: 15px;
				border: 1px solid #d6e9c6;
				border-radius: 4px;
				color: #3c763d;
				background-color: #dff0d8;
			}
		</style>
	</head>
	<body>
		<script>
			let div = document.createElement('div')
			div.className = 'alert'
			div.innerHTML = '我是一个div'
			document.body.appendChild(div)

			setTimeout(() => {
				div.remove()
			}, 5000)
		</script>
	</body>
</html>
